<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
<script type="text/javascript">
	
$(function(){
	var m = document.getElementById("msg").value;
	if(m != ""){
		alert(m);
	}
});
		
</script>

<table align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#6dfff2" width="800">
<input type="hidden" id="msg" value="${message }"/>
	<tr height="25" style="text-align:center">
		<td><a href="itemList.do">상품목록</a></td>
		<td><a href="itemInsert.do">상품등록</a></td>
	</tr>

	<table align="center" width="720">
		<tr height="250" border="1" align="center">
			<td width="50%">
				<img src="../upload/${item.i_image1 }" width = "200" height= "200"><br/>
			</td>
			<td valign="middle" align="left" width="50%">
				상품분류 &nbsp;&nbsp; : &nbsp;&nbsp;${item.i_category }<br/><br/>
				상품이름 &nbsp;&nbsp; : &nbsp;&nbsp;${item.i_name }<br/><br/>
				상품단가 &nbsp;&nbsp; : &nbsp;&nbsp;${item.i_price }
			</td>				
		</tr>
		<tr>
			<td colspan="2">
				<textarea rows="10" cols="100">${item.i_content }</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:right; padding-right:90px">
				<input type="button" value="수정" onclick="location.href='updateItem.do?i_no=${item.i_no}'"/>
				<input type="button" value="삭제" onclick="location.href='deleteItem.do?i_no=${item.i_no}'"/>
				<input type="button" value="목록" onclick="location.href='itemList.do'"/>
			</td>
		</tr>
	</table>


</table>
